const Router = require('koa-router')

const authRouter = new Router()

const {
  login
} = require('../controller/authController')
const {
  verifyLogin,
  verifyAuth
} = require('../middleware/authMiddleware')

authRouter.post('/login', verifyLogin, login)

authRouter.post('/test',verifyAuth)


module.exports = authRouter